package top.zhangjianyong.blog.params.user;

import com.alibaba.fastjson2.annotation.JSONField;
import jakarta.validation.constraints.NotNull;
import org.springframework.web.multipart.MultipartFile;

/**
 * 头像上传参数
 *
 * @author zhangjianyong
 * @since 2024/7/27 下午3:11
 */
public record AvatarUploadParam(
    @JSONField(serialize = false, deserialize = false) @NotNull(message = "文件不能为空")
        MultipartFile file) {}
